package jsf;

import java.io.Serializable;
import java.util.List;

import javax.ejb.EJB;
import javax.faces.bean.RequestScoped;
import javax.inject.Named;

import ejb.UsersBeanRemote;
import entity.Users;

@RequestScoped
@Named("userController")
public class UsersController implements Serializable {

	private static final long serialVersionUID = 1L;
	@EJB(lookup="java:global/EnrollmentManagementEAP/EnrollmentManagementEJB/UsersBean!ejb.UsersBeanRemote")
	UsersBeanRemote bean;
	private List<Users> users;
	
	public List<Users> getUsers() {
		this.users = bean.getAll();
		return this.users;
	}
}
